home *** CD-ROM | disk | FTP | other *** search
- Path: its.hooked.net!usenet
- From: Gunnar Proppe <nervecel@hooked.net>
- Newsgroups: comp.lang.c++
- Subject: Re: No struct in C++!!?
- Date: Wed, 14 Feb 1996 09:53:40 +0000
- Organization: Hooked Online Services
- Message-ID: <3121B124.7A28@hooked.net>
- References: <1996Feb14.151620.5532@queens-belfast.ac.uk>
- NNTP-Posting-Host: like-46.ppp.hooked.net
- Mime-Version: 1.0
- Content-Type: text/plain; charset=us-ascii
- Content-Transfer-Encoding: 7bit
- X-Mailer: Mozilla 2.0 (Macintosh; I; 68K)
-
- Georg Woste wrote:
- > to the paradigm of C++. Shouldn't be everything in a C++ programm
- > either classes, objects or the interaction between objects?
- > So is it bad C++ style, to use functions or data outside from
- > classes (objects)?
- >
-
- I've just been reading _The C++ Programming Language_ by Bjarne
- Stroustrup, the creator of C++, and he addresses this question. While
- he does say that (and I'm heavily paraphrasing here) the object
- paradigm is usually much easier to follow (once you get it) and to
- maintain, there are cases where it just becomes a pedantic exercise to
- try to fit a problem into a set of objects. When you need a struct,
- use a struct; don't try to fit a square peg into a round hole.
-